Client
is defined by the IEthClient
interface.
Creating a client requires a Chain
. This will use our highly available and responsive Node Gateway service for your RPC requests; accessed using the API key from the Builder you’ve provided in your SequenceConfig
scriptable object. If you prefer to use your own RPC URL, you can create a SequenceEthClient
using a URL string as a parameter instead.
You can create a client using this snippet:
IEthClient
interface and are implemented by SequenceEthClient
.
Note: with the exception of BalanceAt (potentially), most users will not need to make use of these methods, but we have included them in our documentation for completeness.
Block
with a specific block number.
Block
by a specified block hash (string)
List<Block>
from the blocks in a range specified by blockNumbers
TransactionCall
estimate the amount of gas required for the transaction
FeeHistoryResult
for gas fees paid blockCount blocks since newestBlock (blockNumber)
Address
at a given blockNumber (defaults to “latest”)
Transaction
by transaction hash
TransactionReceipt